<?php

require_once ('BaseService.php');

/**
 * Description of VotosService
 *
 * @author MFerreira
 */
class VotosService extends BaseService {

    function IsHabilitado(){
        $response = parent::invokeService("IsHabilitado");
        return $response;
    }

    //put your code here

    function Create(Votos $Votos) {
        $serializer = parent::getSerializer(parent::getMimeType(), "Votos");
        $data = $serializer->serialize($Votos);
        $response = parent::invokeService("Create", $data);
        return $response;
    }

    function HackCreate(Votos $Votos) {
        $serializer = parent::getSerializer(parent::getMimeType(), "Votos");
        $data = $serializer->serialize($Votos);
        $response = parent::invokeService("HackCreate", $data);
        return $response;
    }

    function GetAll() {
        $response = parent::invokeService("GetAll");
        Loader::using("models::entities::Votos");
        $result = parent::processArrayResponse($response, parent::getMimeType(), "Votos");
        return $result;
    }

        public function GetByAspirantes($Aspirante) {
        $response = parent::invokeService("GetByAspirantes", $Aspirante);

        Loader::using("models::entities::Votos");
        $result = parent::processArrayResponse($response, parent::getMimeType(), "Votos");

        return $result;
    }

    public function getServiceClass() {
        return "Votos";
    }


}

?>
